#if !defined(AFX_SEVENSEGMENT_H__41C5A0B2_357D_11D3_BD7A_00C04F9902DF__INCLUDED_)
#define AFX_SEVENSEGMENT_H__41C5A0B2_357D_11D3_BD7A_00C04F9902DF__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SevenSegment.h : header file
//

#include "LedSegment.h"
#include "Led.h"
#include "LedDot.h"

/////////////////////////////////////////////////////////////////////////////
// CSevenSegment dialog

class CSevenSegment   : public CLed
{
// Construction
public:
	virtual int GetHeight();
	virtual int GetWidth();
	virtual void Draw(CDC *pDC,unsigned nState=~0);
	virtual void ChangePosition(int XPos,int YPos,int nAngle);
	
    virtual void Create(int XPos,int YPos,int nLen=-1,int nWidth=-1,int nAngle=0);
    virtual void Create(CPoint p,int nLen=-1,int nWidth=-1,int nAngle=0);
	
    void Init();
	CSevenSegment();   // standard constructor
    static int NumTo7Segment(int num);
	static int NumToSegment(int num);

protected:
    CLedSegment m_cSegments[7];     // the seven segment LED display
    CLedDot     m_cLedDot;

// Implementation
protected:

};

// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SEVENSEGMENT_H__41C5A0B2_357D_11D3_BD7A_00C04F9902DF__INCLUDED_)
